package com.vs.model;

import org.apache.struts.validator.ValidatorForm;

public class ProjectForm extends ValidatorForm {

	@Override
	public String toString() {
		return "ProjectForm [projectId=" + projectId + ", projectName="
				+ projectName + ", projectBudget=" + projectBudget
				+ ", projectTimeLine=" + projectTimeLine
				+ ", plannedStartDate=" + plannedStartDate
				+ ", plannedEndDate=" + plannedEndDate + ", projectDetails="
				+ projectDetails + ", action=" + action + ", addedBy="
				+ addedBy + ", modifiedBy=" + modifiedBy + "]";
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer projectId;
	private String projectName;
	private String projectBudget;
	private String projectTimeLine;
	private String plannedStartDate;
	private String plannedEndDate;
	private String projectDetails;
	private String action;
	private String addedBy;
	private String modifiedBy;
	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getProjectBudget() {
		return projectBudget;
	}

	public void setProjectBudget(String projectBudget) {
		this.projectBudget = projectBudget;
	}

	public String getProjectTimeLine() {
		return projectTimeLine;
	}

	public void setProjectTimeLine(String projectTimeLine) {
		this.projectTimeLine = projectTimeLine;
	}

	public String getPlannedStartDate() {
		return plannedStartDate;
	}

	public void setPlannedStartDate(String plannedStartDate) {
		this.plannedStartDate = plannedStartDate;
	}

	public String getPlannedEndDate() {
		return plannedEndDate;
	}

	public void setPlannedEndDate(String plannedEndDate) {
		this.plannedEndDate = plannedEndDate;
	}

	public String getProjectDetails() {
		return projectDetails;
	}

	public void setProjectDetails(String projectDetails) {
		this.projectDetails = projectDetails;
	}


	public String getAddedBy() {
		return addedBy;
	}

	public void setAddedBy(String addedBy) {
		this.addedBy = addedBy;
	}


	public String getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof ProjectForm) {
			ProjectForm prj = (ProjectForm) obj;
			if (prj.projectId.equals(this.projectId))
				return true;
		}
		return false;
	}
}
